<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="GridSettingsTD" targetNamespace="http://www.RobertRisley.com/GridSettingsTD.xsd" xmlns:mstns="http://www.RobertRisley.com/GridSettingsTD.xsd" xmlns="http://www.RobertRisley.com/GridSettingsTD.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">
  <xs:annotation>
    <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource">
      <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
        <Connections>
          <Connection AppSettingsObjectName="Settings" AppSettingsPropertyName="RWR_SettingsConnectionString" ConnectionStringObject="" IsAppSettingsProperty="true" Modifier="Assembly" Name="RWR_SettingsConnectionString (Settings)" ParameterPrefix="@" PropertyReference="ApplicationSettings.RWR.Windows.Components.DSBO.Properties.Settings.GlobalReference.Default.RWR_SettingsConnectionString" Provider="System.Data.SqlClient" />
        </Connections>
        <Tables>
          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="GridSettingsTableAdapter" GeneratorDataComponentClassName="GridSettingsTableAdapter" Name="GridSettings" UserDataComponentName="GridSettingsTableAdapter">
            <MainSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="RWR.dbo.GridSettings" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="false" UserGetMethodName="GetData" UserSourceName="Fill">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>DELETE FROM [GridSettings] WHERE (([UserName] = @Original_UserName) AND ([GridName] = @Original_GridName) AND ([ColumnName] = @Original_ColumnName))</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_GridName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ColumnName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ColumnName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
                <InsertCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>INSERT INTO [GridSettings] ([UserName], [GridName], [ColumnName], [Visible], [DisplayIndex], [Width]) VALUES (@UserName, @GridName, @ColumnName, @Visible, @DisplayIndex, @Width);
SELECT UserName, GridName, ColumnName, Visible, DisplayIndex, Width FROM GridSettings WHERE (ColumnName = @ColumnName) AND (GridName = @GridName) AND (UserName = @UserName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ColumnName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ColumnName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Visible" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Visible" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DisplayIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DisplayIndex" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </InsertCommand>
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT        UserName, GridName, ColumnName, Visible, DisplayIndex, Width
FROM            GridSettings</CommandText>
                    <Parameters />
                  </DbCommand>
                </SelectCommand>
                <UpdateCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="false">
                    <CommandText>UPDATE [GridSettings] SET [UserName] = @UserName, [GridName] = @GridName, [ColumnName] = @ColumnName, [Visible] = @Visible, [DisplayIndex] = @DisplayIndex, [Width] = @Width WHERE (([UserName] = @Original_UserName) AND ([GridName] = @Original_GridName) AND ([ColumnName] = @Original_ColumnName));
SELECT UserName, GridName, ColumnName, Visible, DisplayIndex, Width FROM GridSettings WHERE (ColumnName = @ColumnName) AND (GridName = @GridName) AND (UserName = @UserName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@ColumnName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ColumnName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@Visible" Precision="0" ProviderType="Bit" Scale="0" Size="0" SourceColumn="Visible" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@DisplayIndex" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="DisplayIndex" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="true" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@Width" Precision="0" ProviderType="Int" Scale="0" Size="0" SourceColumn="Width" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_GridName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@Original_ColumnName" Precision="0" ProviderType="VarChar" Scale="0" Size="0" SourceColumn="ColumnName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </UpdateCommand>
              </DbSource>
            </MainSource>
            <Mappings>
              <Mapping SourceColumn="UserName" DataSetColumn="UserName" />
              <Mapping SourceColumn="GridName" DataSetColumn="GridName" />
              <Mapping SourceColumn="ColumnName" DataSetColumn="ColumnName" />
              <Mapping SourceColumn="Visible" DataSetColumn="Visible" />
              <Mapping SourceColumn="DisplayIndex" DataSetColumn="DisplayIndex" />
              <Mapping SourceColumn="Width" DataSetColumn="Width" />
            </Mappings>
            <Sources>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="DeleteByUserNameGridName" Modifier="Public" Name="DeleteByUserNameGridName" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy" UserSourceName="DeleteByUserNameGridName">
                <DeleteCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>DELETE FROM dbo.GridSettings
WHERE     (UserName = @UserName) AND (GridName = @GridName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="UserName" ColumnName="UserName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Original" />
                      <Parameter AllowDbNull="false" AutogeneratedName="GridName" ColumnName="GridName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Original" />
                    </Parameters>
                  </DbCommand>
                </DeleteCommand>
              </DbSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="cUnderwriter.dbo.GridSettings" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByUserNameGridName" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByUserNameGridName" GeneratorSourceName="FillByUserNameGridName" GetMethodModifier="Public" GetMethodName="GetDataByUserNameGridName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByUserNameGridName" UserSourceName="FillByUserNameGridName">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     UserName, GridName, ColumnName, Visible, DisplayIndex, Width
FROM         dbo.GridSettings
WHERE     (UserName = @UserName) AND (GridName = @GridName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="UserName" ColumnName="UserName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="GridName" ColumnName="GridName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectName="cUnderwriter.dbo.GridSettings" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillByUserNameGridNameColumnName" GenerateMethods="Both" GenerateShortCommands="true" GeneratorGetMethodName="GetDataByUserNameGridNameColumnName" GeneratorSourceName="FillByUserNameGridNameColumnName" GetMethodModifier="Public" GetMethodName="GetDataByUserNameGridNameColumnName" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataByUserNameGridNameColumnName" UserSourceName="FillByUserNameGridNameColumnName">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     UserName, GridName, ColumnName, Visible, DisplayIndex, Width
FROM         dbo.GridSettings
WHERE     (UserName = @UserName) AND (GridName = @GridName) AND (ColumnName = @ColumnName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="UserName" ColumnName="UserName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@UserName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="GridName" ColumnName="GridName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="ColumnName" ColumnName="ColumnName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@ColumnName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="ColumnName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
              <DbSource ConnectionRef="RWR_SettingsConnectionString (Settings)" DbObjectType="Unknown" GenerateShortCommands="true" GeneratorSourceName="IsExistingGridSettings" Modifier="Public" Name="IsExistingGridSettings" QueryType="Scalar" ScalarCallRetval="System.Int32, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetDataBy1" UserSourceName="IsExistingGridSettings">
                <SelectCommand>
                  <DbCommand CommandType="Text" ModifiedByUser="true">
                    <CommandText>SELECT     COUNT(*) AS GridSettingExists
FROM         dbo.GridSettings
WHERE     (UserName = @Username) AND (GridName = @GridName)</CommandText>
                    <Parameters>
                      <Parameter AllowDbNull="false" AutogeneratedName="Username" ColumnName="UserName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@Username" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="UserName" SourceColumnNullMapping="false" SourceVersion="Current" />
                      <Parameter AllowDbNull="false" AutogeneratedName="GridName" ColumnName="GridName" DataSourceName="cUnderwriter.dbo.GridSettings" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@GridName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="GridName" SourceColumnNullMapping="false" SourceVersion="Current" />
                    </Parameters>
                  </DbCommand>
                </SelectCommand>
              </DbSource>
            </Sources>
          </TableAdapter>
        </Tables>
        <Sources />
      </DataSource>
    </xs:appinfo>
  </xs:annotation>
  <xs:element name="GridSettingsTD" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="GridSettingsTD" msprop:Generator_DataSetName="GridSettingsTD">
    <xs:complexType>
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element name="GridSettings" msprop:Generator_UserTableName="GridSettings" msprop:Generator_RowDeletedName="GridSettingsRowDeleted" msprop:Generator_RowChangedName="GridSettingsRowChanged" msprop:Generator_RowClassName="GridSettingsRow" msprop:Generator_RowChangingName="GridSettingsRowChanging" msprop:Generator_RowEvArgName="GridSettingsRowChangeEvent" msprop:Generator_RowEvHandlerName="GridSettingsRowChangeEventHandler" msprop:Generator_TableClassName="GridSettingsDataTable" msprop:Generator_TableVarName="tableGridSettings" msprop:Generator_RowDeletingName="GridSettingsRowDeleting" msprop:Generator_TablePropName="GridSettings">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="UserName" msprop:Generator_UserColumnName="UserName" msprop:Generator_ColumnPropNameInRow="UserName" msprop:Generator_ColumnVarNameInTable="columnUserName" msprop:Generator_ColumnPropNameInTable="UserNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="GridName" msprop:Generator_UserColumnName="GridName" msprop:Generator_ColumnPropNameInRow="GridName" msprop:Generator_ColumnVarNameInTable="columnGridName" msprop:Generator_ColumnPropNameInTable="GridNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="ColumnName" msprop:Generator_UserColumnName="ColumnName" msprop:Generator_ColumnPropNameInRow="ColumnName" msprop:Generator_ColumnVarNameInTable="columnColumnName" msprop:Generator_ColumnPropNameInTable="ColumnNameColumn">
                <xs:simpleType>
                  <xs:restriction base="xs:string">
                    <xs:maxLength value="50" />
                  </xs:restriction>
                </xs:simpleType>
              </xs:element>
              <xs:element name="Visible" msprop:Generator_UserColumnName="Visible" msprop:Generator_ColumnPropNameInRow="Visible" msprop:Generator_ColumnVarNameInTable="columnVisible" msprop:Generator_ColumnPropNameInTable="VisibleColumn" type="xs:boolean" minOccurs="0" />
              <xs:element name="DisplayIndex" msprop:Generator_UserColumnName="DisplayIndex" msprop:Generator_ColumnPropNameInRow="DisplayIndex" msprop:Generator_ColumnVarNameInTable="columnDisplayIndex" msprop:Generator_ColumnPropNameInTable="DisplayIndexColumn" type="xs:int" minOccurs="0" />
              <xs:element name="Width" msprop:Generator_UserColumnName="Width" msprop:Generator_ColumnPropNameInRow="Width" msprop:Generator_ColumnVarNameInTable="columnWidth" msprop:Generator_ColumnPropNameInTable="WidthColumn" type="xs:int" minOccurs="0" />
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:choice>
    </xs:complexType>
    <xs:unique name="Constraint1" msdata:PrimaryKey="true">
      <xs:selector xpath=".//mstns:GridSettings" />
      <xs:field xpath="mstns:UserName" />
      <xs:field xpath="mstns:GridName" />
      <xs:field xpath="mstns:ColumnName" />
    </xs:unique>
  </xs:element>
</xs:schema>